package zclTool;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class DelimitedReader {

	
	private BufferedReader br;
	//char[] delimt;
	public DelimitedReader(String filename) 
	throws IOException {
		br = new BufferedReader(new InputStreamReader
				(new FileInputStream(filename), "utf-8"));		
	}
	
	public String[] read()throws IOException{
		String line = br.readLine();
		if(line == null){
			return null;
		}else{	
			return line.split("\t");
		}
	}
	
	public void close()throws IOException{
		br.close();
	}
	//for test
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
